from rest_framework import serializers

from activities.models import Gathering


class ActivitiesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Gathering
        fields = ('id', 'name', 'image', 'city', 'starttime', 'endrolltime', 'users')

class ActivitiesDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = Gathering
        fields = '__all__'

